pref("toolkit.defaultChromeURI", "chrome://balancebook/content/xul/main.xul");
pref("toolkit.singletonWindowType", "BalanceBook:Main");
pref("toolkit.defaultChromeFeatures", "chrome,resizable,centerscreen,dialog=no");
pref("network.protocol-handler.expose-all", false);
pref("network.protocol-handler.warn-external-default", false);

pref("app.update.enabled", true);
// Automatically download updates
pref("app.update.auto", true);
// Prompt if installed extensions are incompatible with the update
pref("app.update.mode", 1);
pref("app.update.url", "https://www.balancebook.org/aus/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml");
pref("app.update.url.manual", "http://developer.balancebook.org/en/docs/BalanceBook");
pref("app.update.url.details", "http://developer.balancebook.org/en/docs/BalanceBook");
// Check once a day
pref("app.update.interval", 86400);
// Time before prompting to download (i.e. installed extensions are incompatible with the new version)
pref("app.update.nagTimer.download", 86400);
// Time before prompting to restart
pref("app.update.nagTimer.restart", 600);
// Check if an update check needs to be run once a minute
pref("app.update.timer", 60000);
// The post install UI appears to be broken
pref("app.update.showInstalledUI", false);

pref("javascript.options.showInConsole", true);
pref("javascript.options.strict", true);
pref("browser.dom.window.dump.enabled", true);

/* Extension manager */
pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul");
pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul");
pref("xpinstall.dialog.progress.type.skin", "Extension:Manager");
pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager");
pref("extensions.dss.enabled", false);
pref("extensions.dss.switchPending", false);
pref("extensions.ignoreMTimeChanges", false);
pref("extensions.logging.enabled", false);
pref("general.skins.selectedSkin", "classic/1.0");

pref("extensions.update.enabled", true);
pref("extensions.update.interval", 86400);
pref("extensions.update.url", "https://addons.balancebook.org/services/update.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%");

// Preferences for the Get Add-ons pane
pref("extensions.getAddons.showPane", true);
pref("extensions.getAddons.browseAddons", "https://addons.balancebook.org/%LOCALE%/%APP%");
pref("extensions.getAddons.maxResults", 5);
pref("extensions.getAddons.recommended.browseURL", "https://addons.balancebook.org/%LOCALE%/%APP%/recommended");
pref("extensions.getAddons.recommended.url", "https://services.balancebook.org/%LOCALE%/%APP%/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION%");
pref("extensions.getAddons.search.browseURL", "https://add-ons.balancebook.org/%LOCALE%/%APP%/search?q=%TERMS%");
pref("extensions.getAddons.search.url", "https://services.balancebook.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION%");

pref("extensions.getMoreExtensionsURL", "https://add-ons.balancebook.org/%LOCALE%/%APP%/%VERSION%/extensions/");
pref("extensions.getMoreThemesURL", "https://add-ons.balancebook.org/%LOCALE%/%APP%/%VERSION%/themes/");
pref("extensions.getMorePluginsURL", "https://add-ons.balancebook.org/%LOCALE%/%APP%/%VERSION%/plugins/");

// suppress external-load warning for standard browser schemes
pref("network.protocol-handler.warn-external.http", false);
pref("network.protocol-handler.warn-external.https", false);
pref("network.protocol-handler.warn-external.ftp", false);

// don't load links inside BalanceBook
pref("network.protocol-handler.expose-all", false);

// The breakpad report server to link to in about:crashes
pref("breakpad.reportURL", "http://crash-stats.balancebook.org/report/index/");

// Where to show tab close buttons:
// 0  on active tab only
// 1  on all tabs until tabClipWidth is reached, then active tab only
// 2  no close buttons at all
// 3  at the end of the tabstrip
pref("browser.tabs.closeButtons", 1);
